package com.kingdee.eas.custom.hr.assessment;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.jdbc.rowset.IRowSet;



public abstract class AbstractDbFacadeControllerBean extends AbstractBizControllerBean implements DbFacadeController
{
    protected AbstractDbFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("21755398");
    }

    public IRowSet getQuery(Context ctx, String sql, String params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("4e2b762e-e8c7-4ff5-8950-c064971d11a1"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getQuery(ctx, sql, params);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getQuery(Context ctx, String sql, String params) throws BOSException
    {    	
        return null;
    }

    public void getExecute(Context ctx, String sql, String params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b5d6945f-627b-4998-82d7-267394de9a35"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            _getExecute(ctx, sql, params);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _getExecute(Context ctx, String sql, String params) throws BOSException
    {    	
        return;
    }

}